# Contributor: Arch3y <arch3y@riseup.net>
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=hexinject
pkgver=1.6
pkgrel=2
pkgdesc="Versatile packet injector and sniffer"
url="https://hexinject.sourceforge.net/"
arch="all"
license="BSD"
makedepends="libpcap-dev"
source="https://downloads.sourceforge.net/hexinject/hexinject-$pkgver.tar.gz
	fix-build.patch
	"
builddir="$srcdir/$pkgname"
options="!check"

build() {
	make
}

package() {
	install -Dvm755 hexinject prettypacket hex2raw \
		-t "$pkgdir"/usr/bin/
}

sha512sums="
7432122a7ca42b7ac066cc55daec2d4a656b08e0f390db1a49f626181080d07687026d04a150573e3341e4e76f87a20b6466deddcc9d022e7d66fadcb8dac1ad  hexinject-1.6.tar.gz
7ab2e5a576e23bb5bfdefc8d9b9a432008d3e75bf4693cab6b0f20661cdf9286487b9c3294b9dfe207d134b8631e2083ac638f0821edc16be1510b8cc4a206aa  fix-build.patch
"
